tools: xl: refactor code to parse network device options
authorAlexandra Sandulescu <alecsandra.sandulescu@gmail.com>
Tue, 21 Oct 2014 21:36:21 +0000 (00:36 +0300)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 12 Jan 2015 17:37:28 +0000 (17:37 +0000)
commit762c08496e9732822f172801d5576cd24fff784a
tree035d87285b0525b9ca81b4d687c359d92806d687
parentc3d8888dacd0abf9fe20dd62d294f5c937114851
tools: xl: refactor code to parse network device options

This patch removes duplicate code in /tools/libxl/xl_cmdimpl.c by
adding parse_nic_config function. This function parses configuration
data and adds the information into libxl_device_nic struct. It is
called in both main_networkattach and parse_config_data functions
to replace duplicate code.

Signed-off-by: Alexandra Sandulescu <alecsandra.sandulescu@gmail.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/xl_cmdimpl.c